package com.zhiche.lisa.bms.dao.model.invoice;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 发票登记
 * </p>
 *
 * @author liuanshun
 * @since 2018-09-27
 */
@TableName("lisa_invoice_reg")
public class InvoiceReg extends Model<InvoiceReg> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Long id;
    /**
     * 开票主表id
     */
	@TableField("head_id")
	private Long headId;
    /**
     * 发票编码
     */
	@TableField("invoice_code")
	private String invoiceCode;
    /**
     * 发票金额
     */
	@TableField("invoice_sum")
	private BigDecimal invoiceSum;
    /**
     * 发票时间
     */
	@TableField("invoice_date")
	private Date invoiceDate;
    /**
     * 已付金额
     */
	@TableField("invoice_re_sum")
	private BigDecimal invoiceReSum;
    /**
     * 待付金额
     */
	@TableField("invoice_lack_sum")
	private BigDecimal invoiceLackSum;
	/**
	 * 租户ID
	 */
	@TableField("tenant_id")
	private Long tenantId;
    /**
     * 附件
     */
	private String accessory;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getHeadId() {
		return headId;
	}

	public void setHeadId(Long headId) {
		this.headId = headId;
	}

	public String getInvoiceCode() {
		return invoiceCode;
	}

	public void setInvoiceCode(String invoiceCode) {
		this.invoiceCode = invoiceCode;
	}

	public BigDecimal getInvoiceSum() {
		return invoiceSum;
	}

	public void setInvoiceSum(BigDecimal invoiceSum) {
		this.invoiceSum = invoiceSum;
	}

	public Date getInvoiceDate() {
		return invoiceDate;
	}

	public void setInvoiceDate(Date invoiceDate) {
		this.invoiceDate = invoiceDate;
	}

	public BigDecimal getInvoiceReSum() {
		return invoiceReSum;
	}

	public void setInvoiceReSum(BigDecimal invoiceReSum) {
		this.invoiceReSum = invoiceReSum;
	}

	public BigDecimal getInvoiceLackSum() {
		return invoiceLackSum;
	}

	public void setInvoiceLackSum(BigDecimal invoiceLackSum) {
		this.invoiceLackSum = invoiceLackSum;
	}

	public Long getTenantId() {
		return tenantId;
	}

	public void setTenantId(Long tenantId) {
		this.tenantId = tenantId;
	}

	public String getAccessory() {
		return accessory;
	}

	public void setAccessory(String accessory) {
		this.accessory = accessory;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "InvoiceReg{" +
			", id=" + id +
			", headId=" + headId +
			", invoiceCode=" + invoiceCode +
			", invoiceSum=" + invoiceSum +
			", invoiceDate=" + invoiceDate +
			", invoiceReSum=" + invoiceReSum +
			", invoiceLackSum=" + invoiceLackSum +
			", tenantId=" + tenantId +
			", accessory=" + accessory +
			"}";
	}
}
